package com.leo.foodmaster.admin.stock.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 入库记录
 * </p>
 *
 * @author Leo
 * @since 2021-08-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="WarehouseInRecord对象", description="入库记录")
public class WarehouseInRecord implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "自增主键Id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "入库记录编号")
    private String serialNum;

    @ApiModelProperty(value = "所属机构Id")
    private Long organId;

    @ApiModelProperty(value = "入库类型：1（毛菜入库）2（净菜入库）")
    private String type;

    @ApiModelProperty(value = "入库日期")
    private LocalDate warehouseInDate;

    @ApiModelProperty(value = "入库记录总数量")
    private BigDecimal amount;

    @ApiModelProperty(value = "入库记录总金额")
    private BigDecimal total;

    @ApiModelProperty(value = "仓库Id")
    private Long warehouseId;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "仓库编号")
    private String warehouseSerialNum;

    @ApiModelProperty(value = "单据状态：0（未审核）1（审核不通过）3（已审核）")
    private String status;

    @ApiModelProperty(value = "采购单Id")
    private Long purchaseBillId;

    @ApiModelProperty(value = "采购单编号")
    private String purchaseBillSerialNum;

    @ApiModelProperty(value = "创建人")
    private String creator;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改人")
    private String updateUser;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "审核人Id")
    private Long checkById;

    @ApiModelProperty(value = "审核人")
    private String checkBy;

    @ApiModelProperty(value = "审核时间")
    private LocalDateTime checkTime;

    @TableField(exist = false)
    private List<WarehouseInRecordDetails> detailList;


}
